lib/pull: Add OSTREE_REPO_PULL_FLAGS_BAREUSERONLY_FILES
authorColin Walters <walters@verbum.org>
Mon, 12 Jun 2017 19:06:19 +0000 (15:06 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Tue, 13 Jun 2017 18:44:28 +0000 (18:44 +0000)
commit6ed824bf00cda6943bdc221194d65de9382d79d8
tree930724e0af8d873485e334f3b535a799ff89827f
parent74e3581ed674746d03e8a0e0af332b10de26963f
lib/pull: Add OSTREE_REPO_PULL_FLAGS_BAREUSERONLY_FILES

This is an option which is intended mostly for flatpak;
see: https://github.com/flatpak/flatpak/issues/845

We're adding an option for pulling into *all*
repo modes that has an effect similar to the `bare-user-only`
change from https://github.com/ostreedev/ostree/pull/909

This way one can pull content into e.g. a root-owned `bare` repository and
ensure that there aren't any setuid or world-writable files.

Closes: #926
Approved by: alexlarsson
src/libostree/ostree-repo-pull.c
src/libostree/ostree-repo.h
src/ostree/ot-builtin-pull-local.c
src/ostree/ot-builtin-pull.c
tests/basic-test.sh
tests/pull-test.sh